//
//  JSQPushMessageManager.h
//  Conversation
//
//  Created by C_HAO on 15/10/13.
//  Copyright © 2015年 CHAOO. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSQMessagesEnum.h"


@interface JSQPushMessageManager : NSObject

/**
 *  获取推送消息
 *
 *  @param URL       获取消息地址
 *  @param parameter 参数
 *  @param complete  完成
 */

+ (void)startGetMessageURL:(NSURL *)URL parameter:(NSDictionary *)parameter complete:(void (^)(MessageClass type, NSDictionary *message, BOOL over, NSString *ACK))complete;

+ (NSDictionary *)analysisData:(NSData *)data;
+ (void)startAcquireMessageURL:(NSURL *)URL parameter:(NSDictionary *)parameter complete:(void (^)(NSData *consequence))complete;
+ (void)analysisNews:(NSDictionary *)messageDictionary complete:(void (^)(MessageClass type, NSString *ACK))complete;

@end
